import java.util.EnumMap;

public class Main {
    public static void main(String[] args) {
        EnumMap<ValEnum, Object> eVal = new EnumMap<>(ValEnum.class);
        eVal.put(ValEnum.VAL0,"val0");
        eVal.put(ValEnum.VAL1,"val1");
        eVal.put(ValEnum.VAL2,"val2");
        Entity e = new Entity("name1", eVal);

        System.out.println(e);
    }
}
record Entity (String eName, Object eVal){}

enum ValEnum{
    VAL0, VAL1, VAL2
}
